home *** CD-ROM | disk | FTP | other *** search
/ PC World 2007 December / PCWorld_2007-12_cd.bin / domacnost a kancelar / autoit / autoit-v3-setup.exe / Examples / Helpfile / _GUICtrlIpAddressCreate.au3 < prev    next >
Text File  |  2007-09-08  |  518b  |  26 lines

  1. #include <GuiIPAddress.au3>
  2.  
  3. Opt("MustDeclareVars", 1)
  4.  
  5. _Main()
  6.  
  7. Func _Main()
  8.     Local $msg, $hgui, $button, $hIPAddress
  9.     
  10.     $hgui = GUICreate("IP Address Control Create Example", 300, 150)
  11.     
  12.     $hIPAddress = _GUICtrlIpAddressCreate ($hgui, 10, 10, 125, 30, $WS_THICKFRAME)
  13.     
  14.     $button = GUICtrlCreateButton("Exit", 100, 100, 100, 25)
  15.     GUISetState(@SW_SHOW)
  16.     
  17.     While 1
  18.         $msg = GUIGetMsg()
  19.         
  20.         Select
  21.             Case $msg = $GUI_EVENT_CLOSE Or $msg = $button
  22.                 Exit
  23.         EndSelect
  24.     WEnd
  25. EndFunc   ;==>_Main
  26.